package com.tuanzi.loan.business.entity.family;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.tuanzi.loan.business.validation.annotation.family.ProductInfoBusinessValidation;
import com.tuanzi.loan.core.entity.AuditEntity;

/**
 * @author weibifeng 2017/10/14
 */
@Data
@Entity
@Table(name = "LOAN_ADVERT")
public class LoanAdvert implements Serializable{

	private static final long serialVersionUID = 2538544627440712861L;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "platform")
	private Integer platform;

	@Column(name = "prdid")
	private String prodId;

	@Column(name = "channel")
	private String channel;

	@Column(name = "position")
	private Integer position;

	@Column(name = "is_timer")
	private Integer isTimer;

	@Column(name = "starttime")
	private Date starttime;

	@Column(name = "endtime")
	private Date endtime;

	@Column(name = "status")
	private Integer status;

	@Column(name = "activity_id")
	private Long activityId;

	@Column(name = "suggest")
	private Integer suggest;

	@Column(name = "ctime")
	private Date ctime;

	@Column(name = "utime")
	private Date utime;

	@Column(name = "operator")
	private String operator;

	@Column(name = "remark")
	private String remark;

	@Column(name = "tag")
	private String tag;

	@Column(name = "advert_space")
	private Integer advertSpace;

	@Column(name = "show_state")
	private Integer showState;

	@Column(name = "redirect_type")
	private Integer redirectType;

	@Column(name = "exclude_channel")
	private String excludeChannel;

	@Column(name = "exclude_prdid")
	private String excludePrdId;

	@Column(name = "fixed_start_time")
	private Date fixedStartTime;

	@Column(name = "fixed_end_time")
	private Date fixedEndTime;

	@Column(name = "upper_limit")
	private Integer upperLimit;

}
